import { addCount,
        addCart } from 'store/mutations-type';


export default {
  [addCount](state, good) { // 件数+1
    good.count++;
    // console.log(state.cartList);
    
  },
  [addCart](state, goodData) { // 添加到购物车
    goodData.count = 1;
    goodData.checked = true;
    state.cartList.push(goodData);
    // console.log(state.cartList);
  } 
}